<template>
  <div class="Big-box flex">
    <div
      class="box fcc flex2"
      v-for="(item, index) in list"
      :key="index"
      @click="programme(index, item)"
    >
      <img :src="item.img" alt="" />
      <span>{{ item.text }}</span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          img: "",
          text: "动火方案",
        },
        {
          img: "",
          text: "工艺",
        },
        {
          img: "",
          text: "检验单",
        },
        {
          img: "",
          text: "整改单",
        },
        {
          img: "",
          text: "会议纪要",
        },
        {
          img: "",
          text: "动火票",
        },
      ],
    };
  },
  methods: {
    programme(i, item) {
      if (i == 0) {
        this.$router.push("/newscheme");
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.Big-box {
  width: 100%;
  border-radius: 2%;
  background-color: #ffffff;
  flex-shrink: 0;
  flex-wrap: wrap;
  .box {
    width: 25%;
    height: 0.9rem;
    img {
      width: 0.35rem;
      height: 0.35rem;
    }
    span {
      margin-top: 0.1rem;
    }
  }
}
</style>